{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e704249f-29a3-43f3-bbe8-7410f435e564",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4b829cf3-17b1-4ae2-a4a0-d12001c98a3d",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "22dd98f9-c25a-4361-8fe9-1bb183edbf9d",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "f1a84aed-046d-4d8d-88ff-134471d92457",
   "metadata": {},
   "outputs": [],
   "source": [
    "x=6"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e5dd4f04-3d75-4462-8e27-fe5418933fd3",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ee35bf9b-7444-4722-9b94-d96853a248ba",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "92f218ee-0b81-485c-89b8-b1f4ee6ccfd5",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "72ceb267-b952-4a3a-9e6c-9d479a19c186",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "3f3683bb-d6cd-4ec1-aac5-efbb9f2bef4f",
   "metadata": {},
   "source": [
    "a=[2,5,8]"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f4204ac4-7291-4f13-8690-310f608ab9c1",
   "metadata": {},
   "source": [
    "a.pop()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d5f54c36-93d8-4ba0-95c1-1f025699f2fa",
   "metadata": {},
   "source": [
    "一、标题示例\n",
    "这是二级标题下的内容，Markdown 支持不同层级的标题，通过 # 数量区分。\n",
    "三级标题\n",
    "三级标题的内容更细分啦。\n",
    "二、列表示例\n",
    "无序列表\n",
    "列表项 1\n",
    "列表项 2\n",
    "子列表项 1\n",
    "子列表项 2\n",
    "有序列表\n",
    "第一项\n",
    "第二项\n",
    "第三项\n",
    "三、链接与图片示例\n",
    "链接\n",
    "百度 是一个常用的搜索引擎。"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0d4e7a3f-c018-40f5-9ea9-21ca0d1763f0",
   "metadata": {},
   "source": [
    "# 一级标题\n",
    "## 二级标题\n",
    "### 三级标题\n",
    "\n",
    "**加粗文本**  \n",
    "*斜体文本*  \n",
    "~~删除线文本~~  \n",
    "`行内代码`\n",
    "\n",
    "---\n",
    "\n",
    "## 列表\n",
    "### 无序列表\n",
    "- 列表项 1\n",
    "- 列表项 2\n",
    "  - 嵌套列表项\n",
    "  - 嵌套列表项\n",
    "\n",
    "### 有序列表\n",
    "1. 第一项\n",
    "2. 第二项\n",
    "   1. 子项\n",
    "   2. 子项\n",
    "\n",
    "---\n",
    "\n",
    "## 链接与图片\n",
    "[普通链接](https://example.com)  \n",
    "![图片描述](https://example.com/image.jpg)\n",
    "\n",
    "---\n",
    "\n",
    "## 代码块\n",
    "```python\n",
    "def hello():\n",
    "    print(\"Hello Markdown!\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "33ec956c-5a30-449c-9dce-5ca291dd2ae3",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "3d476f4c-1b0a-49bb-ba62-d685138c12de",
   "metadata": {},
   "source": [
    "<!DOCTYPE html>\n",
    "<html lang=\"zh-CN\">\n",
    "<head>\n",
    "    <meta charset=\"UTF-8\">\n",
    "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n",
    "    <title>示例网页</title>\n",
    "    <style>\n",
    "        body { font-family: Arial, sans-serif; margin: 20px; }\n",
    "        .highlight { color: red; }\n",
    "        #header { background-color: #f0f0f0; padding: 10px; }\n",
    "    </style>\n",
    "</head>\n",
    "<body>\n",
    "    <!-- 页眉 -->\n",
    "    <header id=\"header\">\n",
    "        <h1>欢迎来到示例网页</h1>\n",
    "        <nav>\n",
    "            <a href=\"#section1\">章节1</a> |\n",
    "            <a href=\"#section2\">章节2</a>\n",
    "        </nav>\n",
    "    </header>\n",
    "\n",
    "    <!-- 主要内容 -->\n",
    "    <main>\n",
    "        <section id=\"section1\">\n",
    "            <h2 class=\"highlight\">章节1</h2>\n",
    "            <p>这是一个段落示例 <strong>加粗文本</strong> 和 <em>斜体文本</em></p>\n",
    "            <img src=\"placeholder.jpg\" alt=\"示例图片\" width=\"200\">\n",
    "        </section>\n",
    "\n",
    "        <section id=\"section2\">\n",
    "            <h2>章节2</h2>\n",
    "            <ul>\n",
    "                <li>无序列表项1</li>\n",
    "                <li>无序列表项2</li>\n",
    "            </ul>\n",
    "            \n",
    "            <table border=\"1\">\n",
    "                <tr>\n",
    "                    <th>姓名</th>\n",
    "                    <th>年龄</th>\n",
    "                </tr>\n",
    "                <tr>\n",
    "                    <td>张三</td>\n",
    "                    <td>25</td>\n",
    "                </tr>\n",
    "            </table>\n",
    "        </section>\n",
    "    </main>\n",
    "\n",
    "    <!-- 表单示例 -->\n",
    "    <form>\n",
    "        <label for=\"username\">用户名：</label>\n",
    "        <input type=\"text\" id=\"username\" name=\"username\">\n",
    "        <br>\n",
    "        \n",
    "        <label for=\"password\">密码：</label>\n",
    "        <input type=\"password\" id=\"password\" name=\"password\">\n",
    "        <br>\n",
    "        \n",
    "        <input type=\"submit\" value=\"登录\">\n",
    "    </form>\n",
    "\n",
    "    <!-- 页脚 -->\n",
    "    <footer>\n",
    "        <p>&copy; 2024 示例公司</p>\n",
    "    </footer>\n",
    "</body>\n",
    "</html>"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fae4bcc4-f187-4a70-bea4-0419444587cb",
   "metadata": {},
   "source": [
    "<!DOCTYPE html>\n",
    "<html lang=\"en\">\n",
    "\n",
    "<head>\n",
    "    <meta charset=\"UTF-8\">\n",
    "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n",
    "    <title>简单 HTML 示例</title>\n",
    "</head>\n",
    "\n",
    "<body>\n",
    "    <!-- 页面标题 -->\n",
    "    <h1>欢迎来到简单 HTML 页面</h1>\n",
    "\n",
    "    <!-- 段落内容 -->\n",
    "    <p>这是一个简单的 HTML 页面示例，展示了 HTML 中常见元素的使用，不包含任何 CSS 样式。HTML 是网页的基础，用于构建网页的结构。</p>\n",
    "\n",
    "    <!-- 无序列表 -->\n",
    "    <h2>无序列表示例</h2>\n",
    "    <ul>\n",
    "        <li>列表项 1</li>\n",
    "        <li>列表项 2</li>\n",
    "        <li>列表项 3</li>\n",
    "    </ul>\n",
    "\n",
    "    <!-- 有序列表 -->\n",
    "    <h2>有序列表示例</h2>\n",
    "    <ol>\n",
    "        <li>第一项</li>\n",
    "        <li>第二项</li>\n",
    "        <li>第三项</li>\n",
    "    </ol>\n",
    "\n",
    "    <!-- 链接 -->\n",
    "    <h2>链接示例</h2>\n",
    "    <p>点击下面的链接访问百度：</p>\n",
    "    <a href=\"https://www.baidu.com\">百度</a>\n",
    "\n",
    "    <!-- 图片 -->\n",
    "    <h2>图片示例</h2>\n",
    "    <p>这里展示一张示例图片：</p>\n",
    "    <img src=\"https://picsum.photos/200/300\" alt=\"示例图片\">\n",
    "\n",
    "    <!-- 表格 -->\n",
    "    <h2>表格示例</h2>\n",
    "    <table border=\"1\">\n",
    "        <thead>\n",
    "            <tr>\n",
    "                <th>姓名</th>\n",
    "                <th>年龄</th>\n",
    "                <th>职业</th>\n",
    "            </tr>\n",
    "        </thead>\n",
    "        <tbody>\n",
    "            <tr>\n",
    "                <td>张三</td>\n",
    "                <td>25</td>\n",
    "                <td>工程师</td>\n",
    "            </tr>\n",
    "            <tr>\n",
    "                <td>李四</td>\n",
    "                <td>30</td>\n",
    "                <td>教师</td>\n",
    "            </tr>\n",
    "        </tbody>\n",
    "    </table>\n",
    "\n",
    "</body>\n",
    "\n",
    "</html>    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "40be0128-9e2b-4c5a-b73c-1676aa60986b",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "77a8b199-85b1-45cc-861e-b58d390b446c",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1db7dab2-42f6-4d75-9749-37fe678019ce",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f0baad93-9e8f-46f4-abd6-9a70a696ee5d",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "6df1655b-afce-4440-b329-2d74f1a7f7ac",
   "metadata": {},
   "source": [
    "| 时间          | 活动内容           | 费用/预约提示                        |\n",
    "|---------------|--------------------|------------------------------------|\n",
    "| 18:00-19:00   | 酒店修正准备吃饭    | 3 晚总预算 1300 元（经济型，含接站服务） |\n",
    "|               |                    |                                    | <!-- 空行增加行高 -->\n",
    "| 晚饭          | 光头东烙馍村       |                                    |\n",
    "|               |                    |                                    | <!-- 空行增加行高 -->\n",
    "| 19:30-21:30   | 龙门石窟夜游       | 门票 120 元/人×4=480 元，提前2天预约 |"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2af6a76c-b8b1-481a-9466-672ade8b65b8",
   "metadata": {},
   "source": [
    " <!-- 主标题 -->\n",
    "<h1>欢迎访问示例页面</h1>\n",
    "\n",
    "<!-- 段落 -->\n",
    "<p>这是一个不使用 CSS 的基础 HTML 页面，展示常见元素。</p>\n",
    "\n",
    "<!-- 无序列表 -->\n",
    "<h2>编程语言列表</h2>\n",
    "<ul>\n",
    "    <li>Python</li>\n",
    "    <li>JavaScript</li>\n",
    "    <li>Java</li>\n",
    "</ul>\n",
    "\n",
    "<!-- 有序列表 -->\n",
    "<h2>学习步骤</h2>\n",
    "<ol>\n",
    "    <li>学习基础语法</li>\n",
    "    <li>完成练习项目</li>\n",
    "    <li>参与开源贡献</li>\n",
    "</ol>\n",
    "\n",
    "<!-- 链接 -->\n",
    "<h2>相关资源</h2>\n",
    "<p>\n",
    "    访问 <a href=\"https://example.com\" target=\"_blank\">示例网站</a> 获取更多内容。\n",
    "</p>\n",
    "\n",
    "<!-- 图片 -->\n",
    "<h2>示例图片</h2>\n",
    "<img \n",
    "    src=\"https://via.placeholder.com/300x200\" \n",
    "    alt=\"占位图片\"\n",
    "    width=\"300\"\n",
    "    height=\"200\"\n",
    ">\n",
    "\n",
    "<!-- 表格 -->\n",
    "<h2>学生成绩表</h2>\n",
    "<table border=\"1\">\n",
    "    <tr>\n",
    "        <th>姓名</th>\n",
    "        <th>科目</th>\n",
    "        <th>分数</th>\n",
    "    </tr>\n",
    "    <tr>\n",
    "        <td>张三</td>\n",
    "        <td>数学</td>\n",
    "        <td>95</td>\n",
    "    </tr>\n",
    "    <tr>\n",
    "        <td>李四</td>\n",
    "        <td>英语</td>\n",
    "        <td>88</td>\n",
    "    </tr>\n",
    "</table>\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0ff5407b-f9a5-4090-9e10-55674048477e",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "f23d8c14-9f00-4d63-b384-b0c60ed16e4f",
   "metadata": {},
   "source": [
    "\\documentclass{article}\n",
    "\\usepackage{amsmath}  % 数学公式扩展包\n",
    "\\usepackage{amssymb}  % 数学符号包\n",
    "\n",
    "\\begin{document}\n",
    "\n",
    "% 行内公式示例\n",
    "勾股定理：\\( a^2 + b^2 = c^2 \\)，其中 \\( c \\) 是斜边长度。\n",
    "\n",
    "% 行间公式示例\n",
    "二次方程求根公式：\n",
    "\\[\n",
    "x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}\n",
    "\\]\n",
    "\n",
    "% 多行对齐公式 (align环境)\n",
    "牛顿第二定律推导：\n",
    "\\begin{align}\n",
    "F &= ma \\label{eq1} \\\\\n",
    "v &= \\frac{dx}{dt} \\nonumber \\\\\n",
    "a &= \\frac{dv}{dt} \\nonumber\n",
    "\\end{align}\n",
    "\n",
    "% 矩阵示例\n",
    "单位矩阵：\n",
    "\\[\n",
    "I_n = \\begin{pmatrix}\n",
    "1 & 0 & \\cdots & 0 \\\\\n",
    "0 & 1 & \\cdots & 0 \\\\\n",
    "\\vdots & \\vdots & \\ddots & \\vdots \\\\\n",
    "0 & 0 & \\cdots & 1\n",
    "\\end{pmatrix}\n",
    "\\]\n",
    "\n",
    "% 积分与极限\n",
    "定积分定义：\n",
    "\\[\n",
    "\\int_{a}^{b} f(x)\\,dx = \\lim_{\\Delta x \\to 0} \\sum_{i=1}^{n} f(x_i^*)\\Delta x_i\n",
    "\\]\n",
    "\n",
    "% 集合运算\n",
    "集合运算示例：\n",
    "\\[\n",
    "A \\cup B = \\{ x \\mid x \\in A \\ \\lor \\ x \\in B \\}\n",
    "\\]\n",
    "其中 \\( \\forall x \\in \\mathbb{R}, \\exists y \\in \\mathbb{Z} \\)\n",
    "\n",
    "% 分段函数\n",
    "符号函数：\n",
    "\\[\n",
    "\\text{sgn}(x) = \n",
    "\\begin{cases}\n",
    "-1 & x < 0 \\\\\n",
    "0 & x = 0 \\\\\n",
    "1 & x > 0\n",
    "\\end{cases}\n",
    "\\]\n",
    "\n",
    "\\end{document}"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b8cd448a-bb31-4c33-a2ec-384e20b3f56e",
   "metadata": {},
   "source": [
    "\\documentclass{article}\n",
    "\\usepackage{amsmath} % 数学公式支持\n",
    "\n",
    "\\begin{document}\n",
    "\n",
    "% 行内模式示例\n",
    "这是一个行内公式：$E = mc^2$，以及二次方程解：$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$。\n",
    "\n",
    "% 整行模式示例\n",
    "整行公式会居中显示：\n",
    "$$\n",
    "\\int_{a}^{b} f(x) \\, dx = F(b) - F(a)\n",
    "$$\n",
    "\n",
    "% 多行公式和对齐\n",
    "$$\n",
    "\\begin{aligned}\n",
    "\\sum_{k=1}^n k &= \\frac{n(n+1)}{2} \\\\\n",
    "\\lim_{x \\to 0} \\frac{\\sin x}{x} &= 1 \n",
    "\\end{aligned}\n",
    "$$\n",
    "\n",
    "% 矩阵示例\n",
    "矩阵的整行写法：\n",
    "$$\n",
    "A = \\begin{pmatrix}\n",
    "1 & 2 & 3 \\\\\n",
    "4 & 5 & 6 \\\\\n",
    "7 & 8 & 9\n",
    "\\end{pmatrix}\n",
    "$$\n",
    "\n",
    "% 希腊字母和符号\n",
    "$$\n",
    "\\nabla \\cdot \\mathbf{E} = \\frac{\\rho}{\\varepsilon_0}\n",
    "$$\n",
    "\n",
    "% 分段函数\n",
    "$$\n",
    "f(x) = \n",
    "\\begin{cases}\n",
    "x^2 & \\text{当 } x \\geq 0 \\\\\n",
    "0   & \\text{其他情况}\n",
    "\\end{cases}\n",
    "$$\n",
    "\n",
    "\\end{document}·"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8db8df80-943c-445f-910c-9471f8c1c07a",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "60fdb26e-20c8-4c03-8098-d49cd30ce6ad",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0ca7e55a-c525-4944-a7ec-c68cb6986f72",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
